package com.ruoyi.buttonDescription.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buttonDescription.mapper.ButtonDescriptionMapper;
import com.ruoyi.buttonDescription.domain.ButtonDescription;
import com.ruoyi.buttonDescription.service.IButtonDescriptionService;

/**
 * 按钮信息更改Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-16
 */
@Service
public class ButtonDescriptionServiceImpl implements IButtonDescriptionService 
{
    @Autowired
    private ButtonDescriptionMapper buttonDescriptionMapper;

    /**
     * 查询按钮信息更改
     * 
     * @param id 按钮信息更改主键
     * @return 按钮信息更改
     */
    @Override
    public ButtonDescription selectButtonDescriptionById(Integer id)
    {
        return buttonDescriptionMapper.selectButtonDescriptionById(id);
    }

    /**
     * 查询按钮信息更改列表
     * 
     * @param buttonDescription 按钮信息更改
     * @return 按钮信息更改
     */
    @Override
    public List<ButtonDescription> selectButtonDescriptionList(ButtonDescription buttonDescription)
    {
        return buttonDescriptionMapper.selectButtonDescriptionList(buttonDescription);
    }

    /**
     * 新增按钮信息更改
     * 
     * @param buttonDescription 按钮信息更改
     * @return 结果
     */
    @Override
    public int insertButtonDescription(ButtonDescription buttonDescription)
    {
        return buttonDescriptionMapper.insertButtonDescription(buttonDescription);
    }

    /**
     * 修改按钮信息更改
     * 
     * @param buttonDescription 按钮信息更改
     * @return 结果
     */
    @Override
    public int updateButtonDescription(ButtonDescription buttonDescription)
    {
        return buttonDescriptionMapper.updateButtonDescription(buttonDescription);
    }

    /**
     * 批量删除按钮信息更改
     * 
     * @param ids 需要删除的按钮信息更改主键
     * @return 结果
     */
    @Override
    public int deleteButtonDescriptionByIds(Integer[] ids)
    {
        return buttonDescriptionMapper.deleteButtonDescriptionByIds(ids);
    }

    /**
     * 删除按钮信息更改信息
     * 
     * @param id 按钮信息更改主键
     * @return 结果
     */
    @Override
    public int deleteButtonDescriptionById(Integer id)
    {
        return buttonDescriptionMapper.deleteButtonDescriptionById(id);
    }
}
